package com.google.code.sysarch.v2;

public class Main {

	
	private final static int NUM_REINDEERS = 1;
	private final static int NUM_ELFS = 1;
	
	public final static int REINDEER_WAKUP_CREW = 9;
	public final static int ELFES_ASKING_CREW = 3;

	public final static String RELATIVE_PATH_FROM_BIN_TO_SRC = "../source/com/google/code/sysarch/v2/gfx/";


	public static Reindeer[] MyReindeers;
	public static Elf[] MyElfs;
	public static Santa MySanta;
	
	public static SantaFrame myGUI;

	
	/**
	 * creates 20 reindeers in the hutch
	 * several elves and one SantaClaus
	 */
	public static void main(String[] args) throws InterruptedException {
		
		/*
		 * create objects
		 */
		MySanta = new Santa();
		MyReindeers = new Reindeer[NUM_REINDEERS];
		MyElfs = new Elf[NUM_ELFS];
		
		for (int i = 0; i < NUM_REINDEERS; i++) {
			MyReindeers[i] = new Reindeer();
			// reindeers have to be in the hutch!
			MyReindeers[i].posX = SantaPanel.HutchX + i*10; 
			MyReindeers[i].posY = SantaPanel.HutchY + i*10; 
		}
		for (int i = 0; i < NUM_ELFS; i++) {
			MyElfs[i] = new Elf();
			// elfs have to be in the toystore!
			MyElfs[i].posX = SantaPanel.ToystoreX + i*10; 
			MyElfs[i].posY = SantaPanel.ToystoreY + i*10; 
		}
		
		/*
		 * start GUI
		 */
		myGUI = new SantaFrame();
		
		/*
		 * now we are ready to start the tale
		 */
		MySanta.start();
		for (int i = 0; i < NUM_REINDEERS; i++) {
			MyReindeers[i].start();
		}
		for (int i = 0; i < NUM_ELFS; i++) {
			MyElfs[i].start();
		}
		
	}
	

}
